        
package com.fire.web.modules.all.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.fire.web.modules.all.entity.Sequence;
import com.fire.web.modules.all.mapper.SequenceMapper;
import com.fire.web.modules.all.service.ISequenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * Service
 *
 * @author aspire
 * @Date 2018-12-06 19:03
 */
@Service
public class SequenceServiceImpl extends ServiceImpl<SequenceMapper, Sequence> implements ISequenceService {
	@Autowired
	SequenceMapper sequenceMapper;


	@Override
	public void resetSeqValue(String seqName) {
		sequenceMapper.initSeq(seqName, 0, 1);
	}

	@Override
	public String getNextStringValue(String seqName) {
		return sequenceMapper.getNextStringValue(seqName);
	}
}
